package com.wmh.baseservice.robot.pojo.vo.taskTemplate;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 谢骏
 * @date 2023/4/20 16:42
 **/
@Data
@Accessors(chain = true)
public class CopyTaskTemplateReqVO implements Serializable {
    @NotNull(message = "模板编号不能为空")
    Long oldTemplateId;

    @Length(min = 2, max = 255, message = "请正确提交新模板名称 长度[2~255]")
    @NotBlank(message = "请正确提交新模板名称 长度[2~255]")
    String newTemplateName;
    static final long serialVersionUID = 42L;
}
